package com.ylz.sjzx.sio.common.core.exception;

/**
 * 业务异常抛出该异常关闭连接
 */
public class CloseException extends RuntimeException {
    private static final long serialVersionUID = 1L;

    protected final String message;

    public CloseException(String message) {
        this.message = message;
    }

    public CloseException(String message, Throwable e) {
        super(message, e);
        this.message = message;
    }

    @Override
    public String getMessage() {
        return this.message;
    }
}
